package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="SanitationArea"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class SanitationArea implements Serializable {

    /** identifier field */
    private Integer areaId;

    /** nullable persistent field */
    private String areaName;

    /** nullable persistent field */
    private String areaRange;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public SanitationArea(String areaName, String areaRange, String userId, String latestDate, String remark) {
        this.areaName = areaName;
        this.areaRange = areaRange;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public SanitationArea() {
    }

    /** minimal constructor */
    public SanitationArea(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="AreaId"
     *             unsaved-value="0"
     *         
     */
    public Integer getAreaId() {
        return this.areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    /** 
     *            @hibernate.property
     *             column="AreaName"
     *             length="100"
     *         
     */
    public String getAreaName() {
        return this.areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    /** 
     *            @hibernate.property
     *             column="AreaRange"
     *             length="100"
     *         
     */
    public String getAreaRange() {
        return this.areaRange;
    }

    public void setAreaRange(String areaRange) {
        this.areaRange = areaRange;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("areaId", getAreaId())
            .toString();
    }

}
